export default function filterArr(arr) {
  let brr = arr.map((v) => {
    if (!v.Pid) {
      
      v.children = arr.filter((w) => {
        return v.id == w.Pid;
      });
    }
    return v;
  });

  let crr = arr.filter((v) => v.Pid == null);
  return crr;
}
